Creating user-defined Exceptions in Python